//
//  HMRetweetStatusView.swift
//  weibo
//
//  Created by LCH on 16/3/10.
//  Copyright © 2016年 lch. All rights reserved.
//

import UIKit

class HMRetweetStatusView: UIView {
    
    var statusViewModel: HMStatusViewModel? {
    
        didSet{
        
         contentLabel.text = statusViewModel?.retweetedText
        }
    
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
   
    private func setupUI() {
    
    backgroundColor = UIColor(white: 239/255, alpha: 1)
        
    addSubview(contentLabel)
    contentLabel.snp_makeConstraints { (make) -> Void in
        
        make.leading.top.equalTo(self).offset(Margin)
        make.trailing.equalTo(self).offset(-Margin)
        }
        
     self.snp_makeConstraints { (make) -> Void in
        
        make.bottom.equalTo(contentLabel).offset(Margin)
        }
    
    
    }
    
    private lazy var contentLabel:UILabel = {
    
    let label = UILabel(textColor: UIColor.darkGrayColor(), fontSize: 15)
    label.numberOfLines = 0
    label.text = "啦啦啦啦啊啦啦啦啦啦啦啦啦啦啦啦啊啦啦啦啦啦啦啦啦啦啦啦啊啦啦啦啦啦啦啦"
    return label
    
    }()
}
